package com.inspur.icity.bus.base.core.exception;

/**
 * 没有权限 - 403
 */
public class ForbiddenException extends ApplicationException{
    public ForbiddenException() {
        super("Forbidden access");
        error.setCode(403);
    }

    public ForbiddenException(String message) {
        super(message);
        error.setCode(403);
    }

    public ForbiddenException(String message, Throwable cause) {
        super(message, cause);
        error.setCode(403);
    }

    public ForbiddenException(Throwable cause) {
        super(cause);
        error.setCode(403);
    }

    public ForbiddenException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        error.setCode(403);
    }
}
